Page/AdminPages
	CreateMonster
		GetPage(href, href_list)
			if(StartsWith(href, "CreateMonster"))
				var/icon/Displayimage = icon('baddies.dmi', href_list["Iconstate"])
				usr << browse_rsc(Displayimage,"displayimg.png")
				content = createMonster
				content += {"if (Main.MonsterType.options\[i].value == "[href_list["Monstertype"]]") {
Main.MonsterType.selectedIndex = \[i];
}
}
for (i=1;i<Iconlist.length - 1;i++) {
if (Main.MonsterState.options\[i].value == "[href_list["Iconstate"]]") {
Main.MonsterState.selectedIndex = \[i];
}
}
Main.MonsterName.value = "[href_list["Monstername"]]";
</SCRIPT></BODY></HTML>"}
				return src

Page/AdminPages
	GetPage(href, href_list)
		return

	ProcessPage(href, href_list)
		switch(href_list["type"])
			if("dostuff")
				switch(href_list["page"])
					if("createmonster")
						var/temp = href_list["Monstertype"]
						var/mob/monster/M = new temp(locate(usr.x,usr.y,usr.z))
						M.name = href_list["Monstername"]
						M.icon_state = href_list["Iconstate"]
						admin << "\red[usr] has created [M.name] the [temp] at [M.x], [M.y], [M.z]"
					if("createturf")
						var/temp = href_list["Turftype"]
						var/turf/template/T
						var/obj/O = new
						T = usr.loc
						O.underlays += T
						O.underlays += T.underlays
						O.overlays += T.overlays
						T = new temp(locate(usr.x,usr.y,usr.z))
						T.underlays+=O.underlays
						del(O)
						T.name = href_list["Turfname"]
						T.icon_state = href_list["Iconstate"]
						T.teleportx = text2num(href_list["Teleportx"])
						T.teleporty = text2num(href_list["Teleporty"])
						T.teleportz = text2num(href_list["Teleportz"])
						T.stext = href_list["Stext"]
						admin << "\red[usr] layed a [T.name]([temp]) at [T.x], [T.y], [T.z]"
			if("reload")
				switch(href_list["Curpage"])
					if("createMonster")
						var/Page/P = FindPage("CreateMonster;" + href)
						P.DisplayPage(usr)
					if("createTurf")
						var/Page/P = FindPage("CreateTurf;" + href)
						P.DisplayPage(usr)
	CreateTurf
		GetPage(href, href_list)
			if(StartsWith(href, "CreateTurf"))
				var/icon/Displayimage = icon('turf.dmi', href_list["Iconstate"])
				usr << browse_rsc(Displayimage,"displayimg.png")
				content = layTurf
				content += {"if (Main.TurfType.options\[i].value == "[href_list["Turftype"]]") {
Main.TurfType.selectedIndex = \[i];
}
}
for (i=1;i<Iconlist.length - 1;i++) {
if (Main.TurfState.options\[i].value == "[href_list["Iconstate"]]") {
Main.TurfState.selectedIndex = \[i];
}
}
Main.TurfName.value = "[href_list["Turfname"]]";
</SCRIPT></CODE></BODY></HTML>"}
				return src

